<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link href="https://getbootstrap.com/docs/4.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
    <title>Title</title>
</head>
<body>
<form class="form-horizontal" action="/put" method="post">
    <fieldset>

        <!-- Form Name -->
        <legend>PUT</legend>
{{range $k, $v := .}}
        <!-- Text input-->
        <div class="form-group">
            <label class="col-md-4 control-label" for="textinput">Key</label>
            <div class="col-md-4">
                <input id="textinput" name="key"  value="{{$k}}" type="text" placeholder="key" class="form-control input-md" required="">

            </div>
        </div>

        <!-- Text input-->
        <div class="form-group">
            <label class="col-md-4 control-label" for="textinput">Value</label>
            <div class="col-md-4">

                <textarea class="form-control" id="textarea" name="value">{{$v}}</textarea>

            </div>
        </div>
{{end}}
        <!-- Button -->
        <div class="form-group">
            <div class="col-md-4">
                <button id="singlebutton" name="singlebutton" class="btn btn-primary">Submit</button>
            </div>
        </div>


    </fieldset>
</form>

</body>
</html>